package com.mrtan.mapper;

import com.mrtan.bean.Supplier;
import com.mrtan.vo.ProductWhereVO;
import com.mrtan.vo.SupplierVO;

import java.util.List;

/**
 * @author Mr.Tan
 * @description 针对表【supplier(供应商)】的数据库操作Mapper
 * @createDate 2023-12-04 11:12:04
 * @Entity com.mrtan.bean.Supplier
 */
public interface SupplierMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Supplier record);

    int insertSelective(Supplier record);

    Supplier selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Supplier record);

    int updateByPrimaryKey(Supplier record);

    List<Supplier> selectAll();
    List<Supplier> selectAllByProductVO(ProductWhereVO productWhereVO);

    Supplier selectByName(String supplierName);

    List<Supplier> allBySupplierVO(SupplierVO supplierVO);

    int selectSupplierCount();
}
